package com.lianzheng.model;

/*
 *  Created on Fri Mar 02 14:50:11 CST 2012
 *
 */
import java.io.Serializable;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;

/**
 * TbDocVideoaudiotype Base Java Bean
 * 
 * This class is the base class for the model
 * 
 */
 
public class TbDocVideoaudiotype extends com.lianzheng.model.BaseObject implements Serializable {

    protected String typeid;
	protected String id;
	protected java.math.BigDecimal type;
	protected java.util.Date ordertime;
	protected com.lianzheng.model.TbDocVideoaudioinfo tbDocVideoaudioinfo;	


  /**
	*
	* Default Empty Constructor for class TbDocVideoaudiotype
	*
	*/
	public TbDocVideoaudiotype () {
		super();
	}
	
  /**
	*
	* Default All Fields Constructor for class TbDocVideoaudiotype
	*
	*/
	public TbDocVideoaudiotype (
		 String in_typeid
		,String in_id
		,java.math.BigDecimal in_type
		,java.util.Date in_ordertime
        ) {
		this.setTypeid(in_typeid);
		this.setId(in_id);
		this.setType(in_type);
		this.setOrdertime(in_ordertime);
    }

	
	public com.lianzheng.model.TbDocVideoaudioinfo getTbDocVideoaudioinfo () {
	// instantiate a new association entity if it is null
		if (tbDocVideoaudioinfo == null) {
			tbDocVideoaudioinfo = new com.lianzheng.model.TbDocVideoaudioinfo ();
		}
		return tbDocVideoaudioinfo;
	}	
	
	public void setTbDocVideoaudioinfo (com.lianzheng.model.TbDocVideoaudioinfo in_tbDocVideoaudioinfo) {
		this.tbDocVideoaudioinfo = in_tbDocVideoaudioinfo;
	}
    
  /**
	*
	* @return String
	*/
	public String getTypeid() {
		return this.typeid;
	}
	
  /**
	* Set the typeid
	*/	
	public void setTypeid(String aValue) {
		this.typeid = aValue;
	}	
  /**
	*
	* @return String
	*/
	public String getId() {
		return this.getTbDocVideoaudioinfo().getId();
	}
	
  /**
	* Set the id
	*/	
	public void setId(String aValue) {
		this.getTbDocVideoaudioinfo().setId(aValue);
	}	
  /**
	*
	* @return java.math.BigDecimal
	*/
	public java.math.BigDecimal getType() {
		return this.type;
	}
	
  /**
	* Set the type
	*/	
	public void setType(java.math.BigDecimal aValue) {
		this.type = aValue;
	}	
  /**
	*
	* @return java.util.Date
	*/
	public java.util.Date getOrdertime() {
		return this.ordertime;
	}
	
  /**
	* Set the ordertime
	*/	
	public void setOrdertime(java.util.Date aValue) {
		this.ordertime = aValue;
	}	
   /**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		if (!(object instanceof TbDocVideoaudiotype)) {
			return false;
		}
		TbDocVideoaudiotype rhs = (TbDocVideoaudiotype) object;
		return new EqualsBuilder()
				.append(this.typeid, rhs.typeid)
						.append(this.type, rhs.type)
				.append(this.ordertime, rhs.ordertime)
				.isEquals();
	}
	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return new HashCodeBuilder(-82280557, -700257973)
				.append(this.typeid) 
						.append(this.type) 
				.append(this.ordertime) 
				.toHashCode();
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this)
				.append("typeid", this.typeid) 
						.append("type", this.type) 
				.append("ordertime", this.ordertime) 
				.toString();
	}

	
}